﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPFExcelReport
{
    public partial class UIWFD : ViewBase
    {
        public VICC_WFEVENTDEF TMV
        {
            get
            {
                return (VICC_WFEVENTDEF)MV;
            }
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
            if(dwMaster==null)
            {
                KEY = "";
            }
            else
            {
                KEY = TMV.WFEVENTS;
            }
        }
        public override void OnARTChg(string des)
        {
            TMV.WFTYPE = ART;
            base.OnARTChg(des);
        }
        public override void OnVARChg(string des)
        {
            TMV.WFCLASS = VAR;
            base.OnVARChg(des);
        }
        public override void OnFARBEChg()
        {
            TMV.WFEHANDLER = DESS;
            base.OnFARBEChg();
        }
    }
}
